#============================================================================
#
#
#	Bing
#
#
#----------------------------------------------------------------------------



#=========================== Sys Clock & rstn ================================
## Clock Signal     50M
set_property -dict {PACKAGE_PIN P17 IOSTANDARD LVCMOS33} [get_ports clk]
create_clock -period 20.000 -name sys_clk_pin -waveform {0.000 10.000} -add [get_ports clk]

## mcu Rst_n
set_property -dict {PACKAGE_PIN R10 IOSTANDARD LVCMOS33} [get_ports mcu_rst]
#----------------------------------------------------------------------------




#=========================== Debug JTAG ======================================

set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets IOBUF_jtag_TCK/O]
set_property KEEPER true [get_ports mcu_TMS]
# mcu_TCK
# mcu_TDO
# mcu_TMS
# rst
# mcu_TDI
# JTAG Debug Port
set_property -dict {PACKAGE_PIN D17 IOSTANDARD LVCMOS33} [get_ports mcu_TCK]
set_property -dict {PACKAGE_PIN E17 IOSTANDARD LVCMOS33} [get_ports mcu_TDO]
set_property -dict {PACKAGE_PIN C17 IOSTANDARD LVCMOS33} [get_ports mcu_TMS]
set_property -dict {PACKAGE_PIN C16 IOSTANDARD LVCMOS33} [get_ports mcu_TDI]


#------------------------ End of Debug JTAG ----------------------------------





#=============================== UART 0 ======================================

set_property -dict {PACKAGE_PIN A16 IOSTANDARD LVCMOS33} [get_ports uart0_tx]
set_property -dict {PACKAGE_PIN A15 IOSTANDARD LVCMOS33} [get_ports uart0_rx]

#---------------------------- End of UART 0 --------------------------------


#LED1       ---> T12
#LED2       ---> U12
#LED3       ---> V12
#LED4       ---> W13
#PL_KEY1    ---> M20
#PL_KEY2    ---> M19



## GPIOA
#LEDs
set_property -dict {PACKAGE_PIN C10 IOSTANDARD LVCMOS33} [get_ports gpioA_0]
set_property -dict {PACKAGE_PIN C11 IOSTANDARD LVCMOS33} [get_ports gpioA_1]
set_property -dict {PACKAGE_PIN A8 IOSTANDARD LVCMOS33} [get_ports gpioA_2]
set_property -dict {PACKAGE_PIN B8 IOSTANDARD LVCMOS33} [get_ports gpioA_3]

#KEY
set_property -dict {PACKAGE_PIN T11 IOSTANDARD LVCMOS33} [get_ports gpioA_4]
set_property -dict {PACKAGE_PIN U11 IOSTANDARD LVCMOS33} [get_ports gpioA_5]
set_property -dict {PACKAGE_PIN T13 IOSTANDARD LVCMOS33} [get_ports gpioA_6]
set_property -dict {PACKAGE_PIN U13 IOSTANDARD LVCMOS33} [get_ports gpioA_7]









set_property IOSTANDARD LVCMOS33 [get_ports gpioA_20]
set_property IOSTANDARD LVCMOS33 [get_ports gpioA_21]
set_property IOSTANDARD LVCMOS33 [get_ports gpioA_22]
set_property IOSTANDARD LVCMOS33 [get_ports gpioA_23]
set_property IOSTANDARD LVCMOS33 [get_ports gpioA_24]
set_property IOSTANDARD LVCMOS33 [get_ports gpioA_25]
set_property PACKAGE_PIN B9 [get_ports gpioA_20]
set_property PACKAGE_PIN C9 [get_ports gpioA_21]
set_property PACKAGE_PIN D9 [get_ports gpioA_22]
set_property PACKAGE_PIN D10 [get_ports gpioA_23]
set_property PACKAGE_PIN D14 [get_ports gpioA_24]
set_property PACKAGE_PIN C14 [get_ports gpioA_25]
